import request from '@/utils/request'

// 删除菜单
export function deletecaid(id) {
  return request({
    url: `/permission/menu/${id}`,
    method: 'delete'
  })
}

// 是否显示
export const xianshi = (id, hidden) => {
  return request({
    url: `/permission/menu/${id}/${hidden}`,
    method: 'get'
  })
}
// 创建
export function addcaidanlist(data) {
  return request({
    url: `/permission/menu`,
    method: 'post',
    data
  })
}

// 修改
export function xgaicaidanlist(id, data) {
  return request({
    url: `/permission/menu/${id}`,
    method: 'put',
    data
  })
}
// 获取用户信息
export function xgaicaidan(id) {
  return request({
    url: `/permission/menu/${id}`,
    method: 'get'
  })
}
